package com.zhs.study;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhenghuisheng
 * @date : 2023/6/7
 */
@Configuration
public class AnnotationConfig {

	@Bean("user")
	public User getUser(){
		User user = new User();
		user.setUsername("zhs");
		return user;
	}
}
